package com.vueperson.vueperson.controller;

import com.vueperson.vueperson.dao.UserRepository;
import com.vueperson.vueperson.entity.User;
import com.vueperson.vueperson.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UsersController {
    @Autowired
    Users users;
    @Autowired
    User user;
    @Autowired
    UserRepository userRepository;

    @RequestMapping("/users")
    public String users(){
        return users.toString();
    }

    @RequestMapping("/users/addrole")
    @ResponseBody
    public String addRole(){

        return "users.toString()";
    }

}
